package com.guaoran.interview.spring.source;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

/**
 * @author : 孤傲然
 * @description : 源码阅读
 * @date :2024/3/1 13:22
 */
public class SourceSpringDemo {
    public static void main(String[] args) {
        AnnotationConfigWebApplicationContext applicationContext = new AnnotationConfigWebApplicationContext();
        applicationContext.register(SourceConfig.class);
        applicationContext.refresh();

        SourceService sourceService = applicationContext.getBean(SourceService.class);
        System.out.println(sourceService.sayHello());
    }
}
